const columns = [
  { title: 'id', dataIndex: 'advertId', key: 'advertId' },
  { title: '计划名称', key: 'advertPlanName', scopedSlots: { customRender: 'advertPlanName' } },
  { title: '曝光', align: 'center', dataIndex: 'advertShowPv', key: 'advertShowPv' },
  { title: '有效点击', align: 'center', dataIndex: 'advertValidClick', key: 'advertValidClick' },
  { title: 'CTR', align: 'center', dataIndex: 'ctr', key: 'ctr', scopedSlots: { customRender: 'ctr' } },
  { title: '消耗', dataIndex: 'expectIncome', key: 'expectIncome', scopedSlots: { customRender: 'expectIncome' } },
  { title: '操作', align: 'center', key: 'actions', scopedSlots: { customRender: 'actions' } },
]

const newArr = [
  { title: 'id', dataIndex: 'advertId', key: 'advertId' },
  { title: '计划名称', key: 'advertPlanName', key: 'advertPlanName', scopedSlots: { customRender: 'advertPlanName' } },
  { title: '曝光', align: 'center', dataIndex: 'advertShowPv', key: 'advertShowPv' },
  { title: '有效点击', align: 'center', dataIndex: 'advertValidClick', key: 'advertValidClick' },
  { title: 'CTR', align: 'center', dataIndex: 'ctr', key: 'ctr', scopedSlots: { customRender: 'ctr' } },
  { title: '消耗', align: 'center', dataIndex: 'expectIncome', key: 'expectIncome', scopedSlots: { customRender: 'expectIncome' } },
]

/* const data = [
  {
    key: '0',
    id: '20',
    advertPlanName: '极准-水滴保01-计划04',
    advertShowPv: '4557',
    advertValidClick: '1357',
    ctr: '29.16%',
    expectIncome: '265.40',
    date: '2021-6-30',
    innerData: [
      { key: 0, date: '2020-7-3' },
      { key: 1, date: '2020-7-4' },
    ],
  },
  {
    key: '1',
    id: '21',
    advertPlanName: '极准-水滴保01-计划04',
    advertShowPv: '2557',
    advertValidClick: '2357',
    ctr: '0%',
    expectIncome: '65',
    date: '2021-7-1',
    innerData: [
      { key: 2, date: '2020-7-5' },
      { key: 3, date: '2020-7-6' },
    ],
  },
] */
const innerColumns = [
  { title: '日期', dataIndex: 'computeTime', key: 'computeTime' },
  {
    title: '曝光',
    dataIndex: 'advertShowPv',
    key: 'advertShowPv',
  },
  {
    title: '有效点击',
    dataIndex: 'advertValidClick',
    key: 'advertValidClick',
  },
  {
    title: 'CTR',
    dataIndex: 'ctr',
    key: 'ctr',
    scopedSlots: { customRender: 'ctr' },
  },
  {
    title: '消耗',
    dataIndex: 'expectIncome',
    key: 'expectIncome',
    scopedSlots: { customRender: 'expectIncome' },
  },
]

export { columns, newArr, innerColumns }
